package br.uneb.tebd.util;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public enum DatabaseInstance {
	
	GET;
	
	private SQLiteDatabase db;
	
	public SQLiteDatabase getDatabaseInstance(Context ctx) {
		if (this.db == null) {
			this.db = ctx.openOrCreateDatabase("android_example", Context.MODE_PRIVATE, null);
		}
		return db;
	}
	
}
